{extend name="index/base" /}
{block name="main"}
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 15px;">
        <legend>栏目列表</legend>
        <div style="margin-top: 10px">
            <button class="layui-btn" onclick="location.href='{:url(\'create\')}'">添加分类</button>
        </div>
    </fieldset>
    <table class="layui-table">
        <thead>
        <tr>
            <th>ID</th>
            <th>栏目名称</th>
            <th>英文名称</th>
            <th>角色</th>
            <th>状态</th>
            <th>添加时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {:category_tree_to_view($category_to_tree)}
        </tbody>
    </table>
{/block}